/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.autoconfig;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>Project: SpringBootPro - LoginInterceptorProperties</p>
 * <p>Powered by yzc On 2023-11-09 14:41:38</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@ConfigurationProperties("spring.mvc.auth") //当前类会注入ioc容器中
public class LoginInterceptorProperties {
    final String[] DEFAULT_INTERCEPTOR_PATH = {"/**"}; //默认拦截路径

    final String[] DEFAULT_EXCLUDE_PATH={};//默认不拦截
    boolean enabled = true;
    String[] pathPatterns = DEFAULT_INTERCEPTOR_PATH; //默认拦截的路径
    String[] excludePathPatterns = DEFAULT_EXCLUDE_PATH; //默认不拦截的路劲

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String[] getPathPatterns() {
        return pathPatterns;
    }

    public void setPathPatterns(String[] pathPatterns) {
        this.pathPatterns = pathPatterns;
    }

    public String[] getExcludePathPatterns() {
        return excludePathPatterns;
    }

    public void setExcludePathPatterns(String[] excludePathPatterns) {
        this.excludePathPatterns = excludePathPatterns;
    }
}
